package com.yjweb.webportal.service;

import com.yjweb.webportal.entities.CaseInfo;
import com.yjweb.webportal.entities.Client;
import com.yjweb.webportal.entities.Contacts;
import com.yjweb.webportal.mapper.CaseMapper;
import com.yjweb.webportal.mapper.ContactsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CaseService {
    @Autowired
    private CaseMapper caseMapper;
    //获取优先级最高一条
    public List<CaseInfo> getAllCaseInfo(){
        return caseMapper.getAllCaseInfo();
    }

    public List<Client> getAllClientInfo(){
        return caseMapper.getAllClientInfo();
    }

    public CaseInfo getCaseDetail(Integer sysNo){return  caseMapper.getCaseDetail(sysNo);}

}
